/*  ----------------------------------------------------------------------
  EVENTS
  element.call(this.methodname.bindAsEventListener(this)).on('click');
  element.dontCall(this.methodname.bindAsEventListener(this)).on('click');
  ---------------------------------------------------------------------- */
var ElementEvents = {
  call: function(element, func, useCapture) {
    return {
      on: function(event) {
        useCapture = useCapture || false;
        Event.observe(element, event, func, useCapture);
      }
    };
  },
  dontCall: function(element, func, useCapture) {
    return {
      on: function(event) {
        useCapture = useCapture || false;
        Event.stopObserving(element, event, func, useCapture);
      }
    };
  }
};
Element.addMethods(ElementEvents);